package com.mipo.springmvc.mis.viewresolver.beannameviewresolver.view;
import java.util.Date;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Component;
import org.springframework.web.servlet.View;

@Component("helloView")
public class HelloView implements View {
	
	@Override
    public String getContentType() {
        return "text/html";
    }
    
	@Override
    public void render(Map<String, ?> model, HttpServletRequest request, HttpServletResponse response) throws Exception {
        response.getWriter().print("Welcome to View:"+new Date());
    }
    
}